Emit notify::active here, when changing the value of this property.
authorMatthias Clasen <mclasen@redhat.com>
Wed, 22 Feb 2006 17:29:07 +0000 (17:29 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 22 Feb 2006 17:29:07 +0000 (17:29 +0000)
2006-02-22  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkradiobutton.c (gtk_radio_button_clicked): Emit notify::active
here, when changing the value of this property.  (#331651)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkradiobutton.c

index 584b91d2af40b4f08bd68b4a941ce102f6fdbee7..6c5fc57ad33642731a2ea6b6abd7738aa51d3491 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-02-22  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkradiobutton.c (gtk_radio_button_clicked): Emit notify::active
+       here, when changing the value of this property.  (#331651)
+
        * gtk/gtknotebook.c: Apply a patch by Paolo Borelli to
        make the tab menu keynavigatable.  (#331440)
 
index 584b91d2af40b4f08bd68b4a941ce102f6fdbee7..6c5fc57ad33642731a2ea6b6abd7738aa51d3491 100644 (file)
@@ -1,5 +1,8 @@
 2006-02-22  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkradiobutton.c (gtk_radio_button_clicked): Emit notify::active
+       here, when changing the value of this property.  (#331651)
+
        * gtk/gtknotebook.c: Apply a patch by Paolo Borelli to
        make the tab menu keynavigatable.  (#331440)
 
index 6ca752318c44bcca68c35e5ab2ea59287ee11da5..d57bda5f1064ede44d550bec43aeef9a01e10cae 100644 (file)
@@ -622,7 +622,7 @@ gtk_radio_button_clicked (GtkButton *button)
     {
       toggled = TRUE;
       toggle_button->active = !toggle_button->active;
-
+      
       tmp_list = radio_button->group;
       while (tmp_list)
        {
@@ -650,7 +650,11 @@ gtk_radio_button_clicked (GtkButton *button)
     gtk_widget_set_state (GTK_WIDGET (button), new_state);
 
   if (toggled)
-    gtk_toggle_button_toggled (toggle_button);
+    {
+      gtk_toggle_button_toggled (toggle_button);
+
+      g_object_notify (G_OBJECT (toggle_button), "active");
+    }
 
   _gtk_button_set_depressed (button, depressed);